package top.wettis.chat.service.impl;

import top.wettis.chat.mapper.HistoryRecordMapper;
import top.wettis.chat.pojo.DO.HistoryRecord;
import top.wettis.chat.pojo.VO.Result;
import top.wettis.chat.service.IHistoryRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户提问历史记录 服务实现类
 * </p>
 *
 * @author wettis
 * @since 2023-03-25
 */
@Service
public class HistoryRecordServiceImpl extends ServiceImpl<HistoryRecordMapper, HistoryRecord> implements IHistoryRecordService {

    @Override
    public Result<Object> selectAll() {
        List<HistoryRecord> historyRecords=getBaseMapper().selectList(null);

        return Result.customInfo(200, "显示成功", historyRecords);
    }
}
